package Player.IAStrategy;

//Singleton + Factory
public class IAStrategyFactory 
{
	private static final IAStrategyFactory instance = new IAStrategyFactory();

	private IAStrategyFactory(){}
	
	public final static IAStrategyFactory getInstance() 
	{
        return instance;
    }
	
	public IAStrategy createIAStrategy(String strategy)
	{
		if(strategy != null)
		{
			if(strategy.equals("glouton"))
			return new IAGloutonStrategy();
		//else
			//other strategy
		}
		return null;
	}
}
